package com.erp.shop.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 智能定价模板业务对象 erp_seller_store_price_template
 *
 * @author erp
 * @date 2023-05-04
 */

@Data
public class ErpSellerStorePriceTemplateBo {

    /**
     * 智能定价模板
     */
    @NotNull(message = "智能定价模板不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    private Long sellerId;

    /**
     * 模板名称
     */
    @NotBlank(message = "模板名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String templateName;

    /**
     * 折扣比例
     */
    @NotNull(message = "折扣比例不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal discount;

    /**
     * 联盟比例
     */
    @NotNull(message = "联盟比例不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal union;

    /**
     * 交易费比例
     */
    @NotNull(message = "交易费比例不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal transaction;
    
    /**
     * 类型 1标准比例 2最低利润 3固定利润
     */
    private Integer type;

    /**
     * 预估利润比例
     */
    @NotNull(message = "预估利润比例不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal profit;

    /**
     * 添加时间
     */
    private Date addTime;


}
